package repository

import (
	"context"
	"time"
)

type UserWallpaper struct {
	ID         int64     `json:"id"`
	UID        int64     `json:"uid"`
	WpID       int64     `json:"wpid"`
	Unlock     int64     `json:"unlock"`
	Like       int64     `json:"like"`
	Favorite   int64     `json:"favorite"`
	Used       int64     `json:"used"`
	SelfUpload int64     `json:"self_upload"`
	CreateTime time.Time `json:"create_time"`
	UpdateTime time.Time `json:"update_time"`
}

type UserWallpaperStore struct {
}

func (m *UserWallpaperStore) tableName() string {
	return "wallpaper_category"
}

func (m *UserWallpaperStore) Create(ctx context.Context, userWallpaper UserWallpaper) error {
	return db.Create(userWallpaper).Error
}
